package vn.com.servicedirectory.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import vn.com.servicedirectory.common.CommonVariable;

@Controller
public class MainMenu {
	@RequestMapping(value = "homeMenu")
	public String homeMenu() {
				return CommonVariable.MENU_ORGANISATIONS_INDEX;
	}
	@RequestMapping(value = "serviceMenu")
	public ModelAndView serviceMenu(Model model) {
		return new ModelAndView(
				"redirect:servicesIndex.html");
	}
	@RequestMapping(value = "geographyMenu")
	public ModelAndView geographyMenu(Model model) {
		return new ModelAndView(
				"redirect:geographyIndex.html");
	}
	@RequestMapping(value = "contactsMenu")
	public ModelAndView contactsMenu(Model model) {
		return new ModelAndView(
				"redirect:contactsIndex.html");
	}
	@RequestMapping(value = "organisationsMenu")
	public String organisationsMenu() {
		return CommonVariable.MENU_ORGANISATIONS_INDEX;
	}
}
